<?php
/**
 * Created by PhpStorm.
 * User: zhonghuanglin
 * Date: 01/09/2017
 * Time: 16:16
 */
namespace {

    use inframe\library\Swooler;

    require __DIR__.'/../engine.inc';

    $swooler = new Swooler();
    $server = $swooler->createWebsocketServer(1990);

    register_shutdown_function(function (){
        echo "bye world\n";
    });

    echo "hello world";
    $server->start();


}